package com.fzkj.shejimoshi.decorator;

/**
 * @DESCRIPTION: TODO 装饰类具体实现
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/16 15:47
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape shape){
        super(shape);
    }

    @Override
    public void draw() {
        decorator();
        shape.draw();
    }

    private void decorator(){
        System.out.println("装饰");
    }
}
